import 'dart:convert';

FileLoactionResult fileLoactionResultFromJson(String str) =>
    FileLoactionResult.fromJson(json.decode(str));

String fileLocationResultToJson(FileLoactionResult data) =>
    json.encode(data.toJson());

class FileLoactionResult {
  FileLoactionResult({
    this.status,
    this.message,
    this.result,
  });

  int? status;
  String? message;
  Result? result;

  factory FileLoactionResult.fromJson(Map<String, dynamic> json) =>
      FileLoactionResult(
        status: json["status"],
        message: json["message"],
        result: json["result"] != null ? Result.fromJson(json["result"]) : null,
      );

  Map<String, dynamic> toJson() => {
        "status": status,
        "message": message,
        "result": result?.toJson(),
      };
}

class Result {
  Result({this.fileLink});

  String? fileLink;

  factory Result.fromJson(Map<String, dynamic> json) => Result(
        fileLink: json["fileLink"],
      );

  Map<String, dynamic> toJson() => {
        "fileLink": fileLink,
      };
}
